class SecureController {

	def beforeInterceptor = [action: this.&auth]
	
    private auth() {
    	if(!session.user) {
    		redirect(controller: 'security', action: 'login_required')
    		return false
    	}
    }
}